package app.controllers;

import com.ifonly.common.ApiMessage;
import com.ifonly.mvc.ActionKey;
import com.ifonly.mvc.Controller;
import com.ifonly.security.IfonlySecurity;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-30 09:18
 * @since JDK 1.6
 */
public class LogoutController extends Controller {

    @ActionKey("/logout")
    public void logout() {
        IfonlySecurity.logout();
        renderJson(ApiMessage.success());
    }

}
